import Cookies from "js-cookie";

const TokenKey: "token" = "token";

export function getToken<T>(): T | null {
  return Cookies.get(TokenKey);
}

export function setToken<T>(token: T) {
  return Cookies.set(TokenKey, token);
}

export function removeToken() {
  return Cookies.remove(TokenKey);
}
